<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
// | Author: your name
// +----------------------------------------------------------------------
namespace app\psace\model\findSpace;

use plugin\saiadmin\basic\BaseModel;

/**
 * 找空间模型
 */
class findSpace extends BaseModel
{

    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'space_id';

    /**
     * 数据库表名称
     * @var string
     */
    protected $table = 'eb_find_space';

    
    /**
     * 空间标题 搜索
     */
    public function searchSpaceTitleAttr($query, $value)
    {
        $query->where('space_title', 'like', '%'.$value.'%');
    }


}
